<template>
  <div class="header">
    <!-- 输入框 -->
    <van-form @submit="onSubmit">
      <van-field
        v-model="username"
        name="手机号"
        label="手机号"
        placeholder="手机号"
        :rules="[{ required: true, message: '请填写手机号' }]"
        class="username"
      />
      <van-field
        v-model="password"
        type="password"
        name="密码"
        label="密码"
        placeholder="密码"
        :rules="[{ required: true, message: '请填写密码' }]"
        class="password"
      />
      <button class="skin">跳过</button>
      <router-link to="Select">
        <button class="next">下一页</button>
      </router-link>
      <div style="margin: 16px">
        <van-button round block type="info" native-type="submit" class="submit"
          >登录/注册</van-button
        >
      </div>
    </van-form>
  </div>
</template>



<style lang="less" scoped>
.header {
  .username {
    margin-top: 100px;
    width: 400px;
    margin-left: 400px;
    border: 1px solid #e3e7ed;
  }
  .password {
    margin-top: 30px;
    width: 400px;
    margin-left: 400px;
    border: 1px solid #e3e7ed;
  }
  .skin {
    margin-top: 10px;
    width: 100px;
    height: 30px;
    margin-left: 400px;
    border-radius: 10px;
    border: 1px solid transparent;
    background-color: #1989fa;
    color: #fff;
  }
  .next {
    margin-top: 10px;
    border-radius: 10px;
    width: 100px;
    height: 30px;
    margin-left: 200px;
    border: 1px solid transparent;
    background-color: #1989fa;
    color: #fff;
  }
  .submit {
    margin-top: 30px;
    width: 300px;
    margin-left: 435px;
    border: 1px solid #e3e7ed;
  }
}
</style>


<script>
export default {
  name: "Password",
  data() {
    return {
      username: "",
      password: "",
    };
  },
  methods: {
    onSubmit(values) {
      console.log("submit", values);
    },
  },
};
</script>